package com.gjs.freechat.server.dao;

import java.util.List;
import java.util.Map;

import com.gjs.freechat.server.component.bean.UserInfo;

public interface UserDao {
	
	public static int GET_USER_WAY_BY_USERNAME = 1;
	public static int GET_USER_WAY_BY_USERNAME_OR_EMAIL = 2;
	public static int GET_USER_WAY_BY_PASSWORD = 3;
	
	//public boolean validateUser(String userKey, int way);
	public UserInfo getUserInfoByUserName(String username);
	public UserInfo getUserInfoByUserNameOrEmail(String userKey);
	public UserInfo getUserInfo(String userKey, String password);

	//public String[] getAllAvatarIconName();
	
	public boolean saveNewUser(UserInfo userInfo);
}
